var listVue = new Vue({
    el: '#slider',
    data: {
        ListHot: '',
        ListNew: '',
        ListOrder: '',
        ListHotPage: 1,
        ListNewPage: 1
    },
    ready: function () {
        var _self = this;
        _self.initData1();
        _self.initData2();
    },
    methods: {
        initData1: function () {
            var _self = this;
            _self.ListHotPage=1;
            mui.ajax({
                url: 'http://192.168.2.20:8080/api/listhot',
                type: 'get',
                data: {
                    page: _self.ListHotPage
                },
                dataType: 'json',
                success: function (res) {
                    _self.ListHot = res;
                }
            });
        },
        addData1: function () {
            var _self = this;
            _self.ListHotPage++;
            mui.ajax({
                url: 'http://192.168.2.20:8080/api/listhot',
                type: 'get',
                data: {
                    page: _self.ListHotPage
                },
                dataType: 'json',
                success: function (res) {
                    _self.ListHot = _self.ListHot.concat(res);
                }
            });
        },
        initData2: function () {
            var _self = this;
            _self.ListNewPage=1;
            mui.ajax({
                url: 'http://192.168.2.20:8080/api/listnew',
                type: 'get',
                data: {
                    page: _self.ListNewPage
                },
                dataType: 'json',
                success: function (res) {
                    _self.ListNew = res;
                }
            });
        },
        addData2: function () {
            var _self = this;
            _self.ListNewPage++;
            mui.ajax({
                url: 'http://192.168.2.20:8080/api/listnew',
                type: 'get',
                data: {
                    page: _self.ListNewPage
                },
                dataType: 'json',
                success: function (res) {
                    _self.ListNew = _self.ListNew.concat(res);
                }
            });
        }
    }
});